VERSION 5.00
Begin VB.Form fmrCierreTotal 
   BackColor       =   &H00800000&
   BorderStyle     =   4  'Fixed ToolWindow
   Caption         =   "CIERRE TOTAL DE PLANILLAS"
   ClientHeight    =   1608
   ClientLeft      =   36
   ClientTop       =   300
   ClientWidth     =   3864
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1608
   ScaleWidth      =   3864
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdNo 
      Caption         =   "No"
      Height          =   372
      Left            =   2040
      TabIndex        =   2
      Top             =   840
      Width           =   1212
   End
   Begin VB.CommandButton cmdSi 
      Caption         =   "Si"
      Height          =   372
      Left            =   480
      TabIndex        =   1
      Top             =   840
      Width           =   1212
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackColor       =   &H00800000&
      Caption         =   "SEGURO DE HACER EL CIERRE"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   10.8
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   372
      Left            =   240
      TabIndex        =   0
      Top             =   360
      Width           =   3372
   End
End
Attribute VB_Name = "fmrCierreTotal"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdNo_Click()
        Unload Me
End Sub

Private Sub cmdSi_Click()
        
        On Error GoTo Errores


        If DE.rsCierreTotal.State = adStateOpen Then DE.rsCierreTotal.Close
            DE.CierreTotal
            MsgBox ("EL CIERRE FUE REALIZADO CON EXITO"), vbDefaultButton1
            Unload Me
            Exit Sub
    
        
            
        

Errores:
    MsgBox "EL CIERRE YA FUE REALIZADO PARA ESTE PERIODO DE PLANILLAS"
    Unload Me
End Sub

Private Sub Form_Load()
    Left = Screen.Width / 2 - Width / 2
    Top = (Screen.Height / 2 - Height / 2) - 800
End Sub
